<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/taglibs.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=7" />
		<title>report right</title>
		<link id="editCss" rel="stylesheet" type="text/css"
			href="<%=basePath%>css/style.css" />
<link id="editCss" rel="stylesheet" type="text/css" href="<%=path%>/css/right.css" />
		<script type="text/javascript"
			src="<%=basePath%>js/permission_dtree.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/base.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/popUpBase.js"></script>
</head>
<body>
<div class="crumbs">
	当前位置：首页 &gt; 监控列表&gt; 收藏站点&gt; 维护关键字
</div>
<div style="float:left;width:99%;">
	<div class="search ctitle">
		<div class="tab">
			<span class="right"></span>
			<span class="font-blue14pxb">未关注的关键字列表:</span>
		</div>
	</div>
	<form method="post" action="<%=path %>/zebra/customer/module/customerMonitorAction?method=addFavoritekeyword">
		<input type="hidden" name="moduleId" id="moduleId" value="${args.moduleId}"/>
		<div class="tableBox fwidth">
			<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
				<c:if test="${!empty notSelectedKeywordList}">
				<tr>
				<c:forEach items="${notSelectedKeywordList}" var="keyword" varStatus="index">
					<c:if test="${index.count % 5 == 0}"></tr><tr></c:if>
					<td>${keyword.text}<br/>
						<a href="<%=path %>/zebra/customer/module/customerMonitorAction?method=addFavoriteKeyword&moduleId=${args.moduleId}&keywordId=${keyword.id}">
								<img src="<%=path%>/images/icon/list_edit.gif" />关注
						</a> 
					</td>
				</c:forEach>
				</tr>
				</c:if>
			</table>
		</div>
	</form>
</div>

<div style="float:left;width:99%;">
	<div class="search ctitle">
		<div class="tab">
			<span class="right"></span>
			<span class="font-blue14pxb">已关注的关键字</span>
		</div>
	</div>
	<div class="tableBox fwidth">
		<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
			<tr>
				<th>序号</th>
				<th>关键字</th>
				<th>操作</th>
			</tr>
			<c:if test="${!empty selectedKeywordList }">
			<c:forEach items="${selectedKeywordList}" var="keyword1" varStatus="index">
			<tr>
				<td>${index.count}</td>
				<td>${keyword1.text}</td>
				<td>
					<a href="<%=path %>/zebra/customer/module/customerMonitorAction?method=delFavoriteKeyword&moduleId=${args.moduleId}&keywordId=${keyword1.id}">
							<img src="<%=path%>/images/icon/list_del.gif" />取消关注
					</a> 
				</td>
			</tr>
			</c:forEach>
			</c:if>
		</table>
	</div>
</div>
</body>
</html>